<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.tueye.entity.user.User"%>
<%@page import="com.tueye.utils.TuEyeConstant"%>
<%@ include file="/common/include.jsp"%>
<%
	String path = request.getContextPath();
	//User user = (User)request.getSession().getAttribute(TuEyeConstant.TUEYE_USER);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>


		<title>写站内消息 - tueye</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="Shortcut Icon" href="#/favicon.ico" type="image/x-icon">
		<meta name="Keywords" content="david">
		<meta name="Description" content="david">

		<link type="text/css" rel="stylesheet"
			href="<%=path%>/themes/css/base.css" media="all">
		<link type="text/css" rel="stylesheet"
			href="<%=path%>/themes/css/messagebase.css" media="all">
		<link type="text/css" rel="stylesheet"
			href="<%=path%>/themes/css/messagesend.css" media="all">
		<meta name="robots" content="all" />
		<meta name="MSSmartTagsPreventParsing" content="true" />
		<meta http-equiv="imagetoolbar" content="false" />
		   <script type="text/javascript" src="<%=path %>/script/jquery.js"></script>
   <script type="text/javascript" src="<%=path %>/script/jLook/jLook-latest.js"></script>
<script type="text/javascript" src="<%=path %>/script/jquery.idTabs.min.js"></script>

		<style type="text/css" charset="utf-8">
/* See license.txt for terms of usage */
.firebugHighlight {
	z-index: 2147483647;
	position: absolute;
	background-color: #3875d7;
}

.firebugLayoutBoxParent {
	z-index: 2147483647;
	position: absolute;
	background-color: transparent;
	border-right: 1px dashed #BBBBBB;
	border-bottom: 1px dashed #BBBBBB;
}

.firebugRulerH {
	position: absolute;
	top: -15px;
	left: 0;
	width: 100%;
	height: 14px;
	background: url(chrome://firebug/skin/rulerH.png) repeat-x;
	border-top: 1px solid #BBBBBB;
	border-right: 1px dashed #BBBBBB;
	border-bottom: 1px solid #000000;
}

.firebugRulerV {
	position: absolute;
	top: 0;
	left: -15px;
	width: 14px;
	height: 100%;
	background: url(chrome://firebug/skin/rulerV.png) repeat-y;
	border-left: 1px solid #BBBBBB;
	border-right: 1px solid #000000;
	border-bottom: 1px dashed #BBBBBB;
}

.overflowRulerX>.firebugRulerV {
	left: 0;
}

.overflowRulerY>.firebugRulerH {
	top: 0;
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
.firebugLayoutBoxOffset {
	z-index: 2147483647;
	position: absolute;
	opacity: 0.8;
}

.firebugLayoutBoxMargin {
	background-color: #EDFF64;
}

.firebugLayoutBoxBorder {
	background-color: #666666;
}

.firebugLayoutBoxPadding {
	background-color: SlateBlue;
}

.firebugLayoutBoxContent {
	background-color: SkyBlue;
}

.firebugLayoutLine {
	z-index: 2147483647;
	background-color: #000000;
	opacity: 0.4;
}

.firebugLayoutLineLeft,.firebugLayoutLineRight {
	position: fixed;
	width: 1px;
	height: 100%;
}

.firebugLayoutLineTop,.firebugLayoutLineBottom {
	position: absolute;
	width: 100%;
	height: 1px;
}

.firebugLayoutLineTop {
	margin-top: -1px;
	border-top: 1px solid #999999;
}

.firebugLayoutLineRight {
	border-right: 1px solid #999999;
}

.firebugLayoutLineBottom {
	border-bottom: 1px solid #999999;
}

.firebugLayoutLineLeft {
	margin-left: -1px;
	border-left: 1px solid #999999;
}
</style>


	</head>
	<body>
		

			<a name="top"></a>
			<div class="SeH">
				<table border="0" cellpadding="0" cellspacing="0" width="778"
					height="65">
					<tbody>
						<tr>
							<td align="center" valign="middle" width="140">
								<a href="#/" titile="大众点评网"><img
										src="<%=path%>/themes/images/blog/logo.png" alt="tueye" >
								</a>
							</td>
							<td valign="bottom" height="25">
								<table border="0" cellpadding="0" cellspacing="0" width="100%">
									<tbody>
										<tr>
											<td colspan="2">
												<span class="CityLink"><div id="MenuCityList"
														class="FlowMenuList"
														onmouseover="mcl(true,'MenuCityList', 'MenuCity', true);"
														onmouseout="mcl(false,'MenuCityList', 'MenuCity', true);"></div>
												</span><span class="Command"><a href="#" class="B">首页</a>&nbsp;|&nbsp;<a
													href="#" class="B">快速注冊</a>&nbsp;|&nbsp;<a href="#/logout"
													class="B">退出</a>&nbsp;|&nbsp;<a href="#/logout" class="B">收藏</a>
												</span>
											</td>
										</tr>
									</tbody>
									<tbody>
										<tr>
											<td>
												<ul class="C_in">
													<li class="T_in">
														<a href="#/myinfo">主页</a>
													</li>
													<li class="T_f">
														<a href="#/beijing/food">经典女星</a>
													</li>
													<li class="T_s">
														<a href="#/beijing/shopping">美女PK</a>
													</li>
													<li class="T_l">
														<a href="#/beijing/life">清纯系列</a>
													</li>
													<li class="T_se">
														<a href="#/beijing/service">火辣性感</a>
													</li>
													<li class="T_p Ext">
														<a href="#/promo/beijing">偷拍自拍</a>
													</li>
													<li class="T_c Ext">
														<a href="#/card/beijing">网络红人</a>
													</li>
													<li class="T_g Ext">
														<a href="#/beijing/group"
															onclick="pageTracker._trackPageview('dp_nav_group_beijing');">搞笑贴图</a>
													</li>
												</ul>
											</td>
											<td align="right">
												&nbsp;
											</td>
										</tr>
									</tbody>
								</table>
							</td>
						</tr>
					</tbody>
				</table>
				<div class="SeBM">
					<img src="<%=path%>/themes/images/blog/simple_bar.gif" width="1" height="2">
				</div>
			</div>
<form name="aspnetForm" method="post"  id="aspnetForm">
			<div>
				<input name="sendusername" id="sendusername" value="david@tueye.com" type="hidden">
			</div>
			<div id="Main">
				<div id="ClassLeft">
					<div id="MessageTitle">
						<div class="TMuchBigger_2 Bold" id="SwitchLeft">
									信息的标题
						</div>
						
					</div>
					<div id="MessageTo">
						
					</div>
					<div id="MessageSubject">
						
					</div>
					<div id="MessageBody">
						
					</div>
					<div id="sendcontent">
					
					</div>
					
					</div>
				</div>
				<div id="ClassRight">
					<div class="ItemLink">
						<img src="<%=path%>/themes/images/blog/icon_writemsg.gif">
						<a class="Bold B" href="<%=request.getContextPath()%>/turnSend.do?blogusername=david@tueye.com">写站内消息</a>
					</div>
					<div class="ItemLink">
						<a class="B Bold" href="<%=request.getContextPath()%>/turnInbox.do">收件箱</a>
					</div>
					<div class="ItemLink">
						<a class="B Bold" href="#/msg/outbox">发件箱</a>
					</div>
					
				</div>
			 

			<div class="Footer">
				<div class="FL"></div>
				<span class="SI"><a href="#"
					onclick="showTickcount();return false;" class="NO">©</a>Copyright
					2003-2008, 版权所有 TUEYE.COM<a href="#"
					onclick="showCacheKeys();return false;" class="NO">2</a>
				</span><span class="SL"><a href="#" class="B">关于tueye</a> <a
					href="#" class="B">广告服务聘</a> <a href="#" class="B">合作伙伴</a> <a
					href="#" class="B">帮助中心</a>
					 
			</div>

<script type="text/javascript"> 

 //提交，最终验证。
	$("#btnSend").bind("click", function(){
	//debugger;
			$(":input").trigger('blur');
		
			
			var receiveusername = $('#receiveusername').val();
			var sendtitle =  $('#sendtitle').val();
			var sendusername = $('#sendusername').val();
			var sendcontent =  $('#sendcontent').val();
			var validateCode =  $('#validateCode').val();
			if(receiveusername == null || $.trim(receiveusername)==""){
				alert("请填写收件人!");
				return false;
			}
			if(sendtitle == null || $.trim(sendtitle)==""){
				alert("请填写标题!");
				return false;
			}
			if(validateCode == null || $.trim(validateCode)==""){
				alert("请输入验证码！");
				return false;
			}
			var sendData= "receiveusername="+encodeURIComponent(receiveusername)+"&sendtitle="+encodeURIComponent(sendtitle)
			+"&sendusername="+encodeURIComponent(sendusername)+"&sendcontent="+encodeURIComponent(sendcontent)
			+"&validateCode="+encodeURIComponent(validateCode);
			
			$.ajax({
            type:"POST",
            url: "<%=request.getContextPath()%>/saveSend.do", 
            dataType:'html', //接受数据格式
            async: false,
            data: sendData,
            success: function(data){ 
             var obj=eval("("+data+")");  
                  if(data=='1'){ 
                    alert("验证码输入不正确！");
                  }
                }
			,
           error:function(data){
             alert("操作错误！");
           }
	
	})
	  
	 
		 })
		
  </script>
	</body>
</html>